package com.qiangesoft.blog.core.pojo.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiangesoft.blog.common.utils.DateUtils;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author qiange
 * @date 2023-06-02
 */
@Data
public class ArticleDTO {
    private Long id;

    private Long userId;

    private String title;

    private String avatar;

    private String summary;

    private Integer quantity;

    private String content;

    private String contentMd;

    private Boolean isSecret;

    private Boolean isStick;

    private Boolean isOriginal;

    private String originalUrl;

    private String remark;

    private String keywords;

    private String categoryName;

    private Boolean isPublish;

    private List<String> tags;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = DateUtils.FORMAT_STRING, timezone = "GMT+8")
    private Date createTime;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = DateUtils.FORMAT_STRING, timezone = "GMT+8")
    private Date updateTime;
}
